package com.ruoyi.salary.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 薪酬调整对象 hr_salary_adjustment
 * 
 * @author gy
 * @date 2025-05-21
 */
public class HrSalaryAdjustment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String empName;

    /** 部门 */
    @Excel(name = "部门")
    private String deptName;

    /** 调整日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调整日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adjustDate;

    /** 调整前工资 */
    @Excel(name = "调整前工资")
    private BigDecimal beforeSalary;

    /** 调整后工资 */
    @Excel(name = "调整后工资")
    private BigDecimal afterSalary;

    /** 调整原因 */
    @Excel(name = "调整原因")
    private String reason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEmpName(String empName) 
    {
        this.empName = empName;
    }

    public String getEmpName() 
    {
        return empName;
    }

    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }

    public void setAdjustDate(Date adjustDate) 
    {
        this.adjustDate = adjustDate;
    }

    public Date getAdjustDate() 
    {
        return adjustDate;
    }

    public void setBeforeSalary(BigDecimal beforeSalary) 
    {
        this.beforeSalary = beforeSalary;
    }

    public BigDecimal getBeforeSalary() 
    {
        return beforeSalary;
    }

    public void setAfterSalary(BigDecimal afterSalary) 
    {
        this.afterSalary = afterSalary;
    }

    public BigDecimal getAfterSalary() 
    {
        return afterSalary;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("empName", getEmpName())
            .append("deptName", getDeptName())
            .append("adjustDate", getAdjustDate())
            .append("beforeSalary", getBeforeSalary())
            .append("afterSalary", getAfterSalary())
            .append("reason", getReason())
            .toString();
    }
}
